WooCommerce\Square\Framework\PaymentGateway\Payment_Gateway D

Total Complexity 514
Dependencies 35
Dependents 13
Total lines 4,790
Lines of code 1,792
Logical lines of code 887
Comment lines 1,999
Methods 174
Properties 35

Methods 174

Method Rating Maintainability Complexity Lines of code
add_transaction_data()
C
41 26 47
process_refund()
A
38 13 72
maybe_refund_gift_card()
A
40 13 57
__construct()
A
41 13 56
restore_refunded_inventory()
A
45 14 38
init_form_fields()
A
39 11 66
handle_multi_payment_methods()
A
42 10 48
maybe_tokenize()
A
52 11 23
add_debug_message()
A
54 11 18
get_credit_card_transaction_approved_message()
A
47 10 33
add_shared_settings_form_fields()
A
48 10 30
do_transaction()
A
48 9 31
handle_single_payment_method()
A
57 10 15
admin_options()
A
41 5 87
do_gift_card_transaction()
A
45 7 39
mark_order_as_held()
A
53 8 20
is_available()
A
55 8 19
complete_payment()
A
54 8 18
add_authorization_charge_form_fields()
S
44 6 44
build_split_payment_order_note()
S
53 7 20
get_icon()
S
57 7 15
get_order_tender_types()
S
59 6 15
load_shared_settings()
S
58 6 15
do_transaction_failed_result()
S
58 6 15
get_customer_id()
S
55 5 19
mark_order_as_failed()
S
57 5 17
get_payment_method_image_url()
S
58 5 14
gift_card_cancel_payment()
S
61 5 12
add_customer_data()
S
61 5 12
process_void()
S
54 4 21
add_multi_payment_refund_order_note()
S
55 4 18
perform_charge()
S
64 5 8
perform_credit_card_charge()
S
64 5 8
get_order()
S
56 4 15
add_support()
S
62 4 11
localize_script()
S
61 4 11
create_gift_card()
S
52 3 24
maybe_save_gift_card_order_details()
S
57 3 17
mark_order_as_voided()
S
57 3 16
maybe_render_held_order_received_text()
S
68 4 7
enqueue_gateway_assets()
S
58 3 15
get_order_for_capture()
S
58 3 14
get_order_with_unique_transaction_ref()
S
60 3 12
get_refund_failed_wp_error()
S
58 2 17
add_csc_form_fields()
S
57 2 17
get_void_failed_wp_error()
S
58 2 17
add_order_meta()
S
64 3 9
delete_order_meta()
S
65 3 9
update_order_meta()
S
65 3 9
get_order_meta()
S
65 3 9
get_order_for_refund()
S
61 3 10
currency_is_accepted()
S
66 3 9
get_customer_id_user_meta_name()
S
69 3 6
add_refund_data()
S
70 3 6
add_void_data()
S
70 3 6
enqueue_scripts()
S
67 3 9
load_settings()
S
67 3 8
enqueue_payment_form_assets()
S
63 3 9
supports_subscriptions()
S
79 3 3
supports_pre_orders()
S
79 3 3
init_integrations()
S
65 3 9
is_pay_page_gateway()
S
64 3 10
get_payment_method_defaults()
S
60 2 14
get_available_card_types()
S
58 2 14
get_payment_form_js_localized_script_params()
S
51 1 26
add_refund_order_note()
S
62 2 11
add_card_types_form_fields()
S
56 1 18
supports_credit_card_charge()
S
79 2 3
supports_credit_card_authorization()
S
79 2 3
get_guest_customer_id()
S
68 2 7
supports_credit_card_partial_capture()
S
79 2 3
is_test_environment()
S
71 2 6
is_production_environment()
S
71 2 6
remove_customer_id()
S
70 2 6
get_environment_name()
S
70 2 6
supports_credit_card_charge_virtual()
S
79 2 3
perform_authorization()
S
70 2 5
perform_credit_card_authorization()
S
70 2 5
get_environments()
S
69 2 6
get_order_button_text()
S
73 2 4
supports_card_types()
S
79 2 3
load_gift_card()
S
66 2 8
csc_enabled_for_tokens()
S
79 2 3
get_request()
S
71 2 6
add_api_request_logging()
S
71 2 5
log_api_request()
S
70 2 6
get_payment_currency()
S
65 2 9
payment_fields()
S
70 2 7
update_customer_id()
S
70 2 6
debug_log()
S
78 2 3
debug_checkout()
S
78 2 3
get_subscriptions_integration()
S
78 2 3
get_checkout_pay_page_order_id()
S
74 2 4
get_default_description()
S
71 2 6
get_default_title()
S
71 2 6
mark_order_as_refunded()
S
66 2 8
get_pre_orders_integration()
S
78 2 3
maybe_cancel_voided_order()
S
67 2 8
supports_voids()
S
79 2 3
add_milestone_hooks()
S
60 1 15
get_integration()
S
78 2 3
debug_off()
S
80 1 3
get_partial_total_on_other_gateway()
S
80 1 3
get_plugin()
S
82 1 3
get_gateway_js_handle()
S
80 1 3
get_method_title()
S
82 1 3
get_order_authorization_amount()
S
74 1 4
get_order_capture_maximum()
S
74 1 4
csc_enabled()
S
80 1 3
get_api()
S
81 1 3
is_hosted_gateway()
S
82 1 3
get_id()
S
82 1 3
csc_required()
S
81 1 3
share_settings()
S
82 1 3
get_partial_total_on_credit_card()
S
75 1 4
inherit_settings()
S
80 1 3
get_accepted_currencies()
S
82 1 3
get_partial_total_on_gift_card()
S
80 1 3
get_available_countries()
S
82 1 3
set_supports()
S
81 1 3
is_direct_gateway()
S
82 1 3
get_charge_type()
S
80 1 3
is_gift_card_applied()
S
79 1 3
get_environment()
S
82 1 3
get_payment_type()
S
82 1 3
is_environment()
S
80 1 3
is_credit_card_gateway()
S
79 1 3
is_cash_app_pay_gateway()
S
79 1 3
is_enabled()
S
80 1 3
is_detailed_customer_decline_messages_enabled()
S
80 1 3
get_id_dasherized()
S
79 1 3
verify_order_total()
S
70 1 6
get_order_meta_prefix()
S
79 1 3
maybe_void_instead_of_refund()
S
82 1 3
tokenize_after_sale()
S
82 1 3
supports_token_editor()
S
80 1 3
get_integrations()
S
82 1 3
add_payment_gateway_transaction_data()
S
91 1 2
build_subscriptions_integration()
S
80 1 3
build_pre_orders_integration()
S
80 1 3
supports_apple_pay()
S
80 1 3
get_apple_pay_capabilities()
S
71 1 7
supports_credit_card_capture()
S
80 1 3
get_apple_pay_currencies()
S
81 1 3
get_order_for_apple_pay()
S
71 1 6
get_method_form_fields()
S
100 1 0
add_environment_form_fields()
S
63 1 10
get_capture_handler()
S
82 1 3
init_capture_handler()
S
80 1 3
is_configured()
S
82 1 3
do_payment_method_transaction()
S
100 1 0
tokenize_with_sale()
S
82 1 3
supports_authorization()
S
80 1 3
add_pay_page_handler()
S
78 1 3
supports_add_payment_method()
S
80 1 3
payment_page()
S
78 1 3
supports_payment_form()
S
80 1 3
get_payment_form_instance()
S
80 1 3
init_payment_tokens_handler()
S
80 1 3
add_tokenization_form_fields()
S
63 1 10
tokenization_enabled()
S
76 1 4
supports_tokenization()
S
80 1 3
get_card_types()
S
82 1 3
is_paid_capture_enabled()
S
77 1 3
supports_charge()
S
80 1 3
is_partial_capture_enabled()
S
74 1 4
build_payment_tokens_handler()
S
80 1 3
get_payment_tokens_handler()
S
82 1 3
get_authorization_time_window()
S
82 1 3
tokenize_before_sale()
S
82 1 3
supports_partial_capture()
S
80 1 3
supports_capture()
S
80 1 3
supports_charge_virtual()
S
80 1 3
supports_customer_id()
S
80 1 3